local skill = fk.CreateSkill{
  name = "tea__yifeng",
  tags = { Skill.Compulsory }
}
local TeaU = require "packages.wild_collection.utility.utility"
local getCountry = function(player)
  if player:getMark("@tea__piaobo_mark") ~= 0 then
    return player:getMark("@tea__piaobo_mark")
  else
    return "china"
  end
end
---@type TrigSkelSpec<TrigFunc>
local yifeng = {
  anim_type = "special",
  can_trigger = function(self, event, target, player, data)
    if player:hasSkill(skill.name) then
      return (player == target and getCountry(player) == "japan") or (player ~= target and getCountry(target) == getCountry(player))
    end
  end,
  on_use = function(self, event, target, player, data)
    local room = player.room
    if player == target then
      room:changeMaxHp(player, 1)
    else
      player:drawCards(1, skill.name)
      target:drawCards(1, skill.name)
    end
  end,
}
skill:addEffect(TeaU.AfterCountryChanged, yifeng)
return skill